package com.photovoltaic.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.photovoltaic.auth.entity.Permission;
import com.photovoltaic.auth.entity.Role;

import java.util.List;

public interface RoleService extends IService<Role> {
    
    Role findByRoleName(String roleName);
    
    List<Permission> getRolePermissions(Long roleId);
    
    boolean assignPermission(Long roleId, Long permissionId);
    
    boolean removePermission(Long roleId, Long permissionId);
} 